#! /bin/sh
patch -p1 -f -l $* < $0
exit $?

From af43ceb86ff8f762f30824ec779e200680e21914 Mon Sep 17 00:00:00 2001
From: Andre Heinecke <aheinecke@gnupg.org>
Date: Wed, 22 Jul 2020 15:27:33 +0200
Subject: [PATCH] Fix build without std::thread

---
 src/corelib/thread/qwaitcondition_p.h | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/corelib/thread/qwaitcondition_p.h b/src/corelib/thread/qwaitcondition_p.h
index 5133e52e..d86ab804 100644
--- a/src/corelib/thread/qwaitcondition_p.h
+++ b/src/corelib/thread/qwaitcondition_p.h
@@ -58,12 +58,20 @@
 #include <condition_variable>
 #include <mutex>

+namespace std {
+enum class cv_status {
+    no_timeout,
+    timeout
+};
+}
+
+
 QT_BEGIN_NAMESPACE

 namespace QtPrivate
 {

-#if defined(Q_OS_INTEGRITY)
+#if defined(Q_OS_INTEGRITY) || defined(Q_OS_WIN)

 class condition_variable;

--
2.20.1
